Skip to content

fix: sync PWA status bar with theme and follow system color scheme - #142

Merged
therealsama merged 1 commit into
mainfrom
feat/theme-status-bar-system-sync
Jun 9, 2026
Merged

therealsama merged 1 commit into
mainfrom
feat/theme-status-bar-system-sync

Conversation

@therealsama

Copy link
Copy Markdown
Collaborator

The theme-color meta was keyed to prefers-color-scheme, so the in-app toggle never recolored the Android PWA status bar, and the app never reacted to the OS theme changing at runtime.

  • Drive a single JS-controlled theme-color meta from the resolved theme (seeded before first paint, updated on every change) so the status bar tracks the app theme.
  • Add a tri-state preference (system/light/dark, default system) that follows the OS color scheme live; explicit light/dark pins persist across OS changes.
  • Replace the binary toggle with a System -> Light -> Dark cycle button.

The theme-color meta was keyed to prefers-color-scheme, so the in-app
toggle never recolored the Android PWA status bar, and the app never
reacted to the OS theme changing at runtime.

- Drive a single JS-controlled theme-color meta from the resolved theme
  (seeded before first paint, updated on every change) so the status bar
  tracks the app theme.
- Add a tri-state preference (system/light/dark, default system) that
  follows the OS color scheme live; explicit light/dark pins persist
  across OS changes.
- Replace the binary toggle with a System -> Light -> Dark cycle button.
@therealsama
therealsama requested a review from kplachkov as a code owner June 9, 2026 09:16
@therealsama
therealsama merged commit 2a1bdec into main Jun 9, 2026
4 checks passed
@therealsama
therealsama deleted the feat/theme-status-bar-system-sync branch June 9, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants